<template>
  <div>火速开发中...</div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useLoginUserStore } from '@/stores/useLoginUserStore'

const router = useRouter()
const loginUserStore = useLoginUserStore()

onMounted(() => {
  // Redirect to login if not logged in
  if (!loginUserStore.loginUser.id) {
    router.replace({
      path: '/user/login',
      query: { redirect: '/message-center' },
    })
  }
})
</script>
